import { createAction } from "redux-actions";
import { DoctorData } from "../../type/DoctorData";
import { HospitalInfo } from "../../type/HospitalData";
import { GET_DOCTOR_LIST, GET_HOSPITAL_LIST } from "../AcrionTypes";

/**
 * 设置医院列表数据
 */
export const getHispitalList = createAction(
  GET_HOSPITAL_LIST,
  (hospitalList: HospitalInfo[]) => {
    return hospitalList;
  }
);
/**
 * 设置医生列表数据
 */
export const getDoctorlist = createAction(
  GET_DOCTOR_LIST,
  (doctorList: DoctorData[]) => {
    return doctorList;
  }
);
